import CSYNAC.Server as SERVER
import argparse
import xmlrpc.client as CLIENT

parser = argparse.ArgumentParser()
parser.add_argument("option")
parser.add_argument("--target",help='The ip of the target')
parser.add_argument("--port",help="The listening port of the target")
parser.add_argument("--lpath",help="local path of the Mapping folder")
parser.add_argument("--rpath",help="remote path of the Mapping folder")
parser.add_argument("--string",help="The masage to confirm")
args = parser.parse_args()
if args.option=='echo':
     with CLIENT.ServerProxy(f"http://127.0.0.1:{args.port}") as client:
        print(client.echo(args.string))